package com.swp.oa.sys.service;

import java.util.List;

import com.swp.oa.sys.dto.domian.UserDto;
import com.swp.oa.sys.pojo.User;
import com.swp.oa.sys.util.Pager;

public interface IUserService {
		
	public abstract String save(UserDto user);
	
	public abstract boolean saveUserRole(String userId,String roleId);

	public abstract boolean deleteByPrimaryKey(String userid);
	
	public abstract String deleteUser(String[] userIdArray);

	public abstract boolean update(UserDto user);

	public abstract boolean existUserName(String userName);

	public abstract Pager getUserList(int pageIndex, int pageSize, String userName,
									  String createdateStart, String createdateEnd,
									  String updatedateStart, String updatedateEnd, String[] deptIds);

	public abstract UserDto getUserByUserId(String userId);
	
	public abstract UserDto getUserByUserName(String userName);

	public abstract String getUserIdByToken(String token);

	public abstract boolean validatePassword(String userId, String password);

	public abstract void changePassword(String userId, String password);
	
	public abstract List<User> getUsersByAuthCode(String code);

}
